package com.itheima.mapper;

import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    void add(Permission permission);

    List<Permission> findByCondition(@Param("queryString") String queryString);

    Integer findCountByCheckItemId(@Param("id") Integer id);

    void deleteById(@Param("id") Integer id);

    Permission findById(@Param("id") Integer id);

    void edit(Permission permission);

    List<Permission> findAll();

    List<Integer> findCheckItemIdsByCheckGroupId(@Param("id") Integer id);

    List<Permission> findByCheckGroupId(@Param("id") Integer id);

//    Long findCount(@Param("queryString") String queryString);

//    List<CheckItem> findByCondition(@Param("firstResult")int firstResult, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString);
}
